﻿<%@ Page Title="维度管理-首家汽车行业人才测评系统" Language="C#" MasterPageFile="~/System/SiteSystem.Master"
    AutoEventWireup="true" CodeBehind="DimensionList.aspx.cs" Inherits="EvaluationSystem.DimensionList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/jscript">
    function CheckConfirm() {
        if (confirm('导入题目将会覆盖原有数据，是否继续?')) {
            return true;
        }
        else {
            return false;
        }
    }
</script>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="maintable">
        <tr>
            <td>
                <asp:GridView ID="grVDimensionManage" runat="server" AutoGenerateColumns="False"
                    CellPadding="4" DataKeyNames="dimension_id" ForeColor="#333333" GridLines="None"
                    Width="100%" OnPageIndexChanging="GridView1_Index" OnRowDataBound="GridView1_RowDataBound"
                    HorizontalAlign="Center" RowStyle-HorizontalAlign="Center" OnRowCommand="GridView1_RowCommand"
                    RowStyle-VerticalAlign="Middle" OnDataBound="grVDimensionManage_DataBound">
                    <FooterStyle BackColor="#63C1CD" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                <asp:CheckBox ID="CB_Select" runat="server" AutoPostBack="FALSE" />
                            </ItemTemplate>
                            <ItemStyle Width="5%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="dimension_id" HeaderText="维度ID" ReadOnly="True" SortExpression="dimension_id"
                            Visible="false" />
                        <asp:BoundField DataField="dimension_name" HeaderText="维度名称" ReadOnly="True" SortExpression="dimension_name"
                            Visible="true">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="dimension_class_nm" HeaderText="维度类型" ReadOnly="True"
                            SortExpression="dimension_class_nm" Visible="true">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="dimension_description" HeaderText="维度描述" ReadOnly="True"
                            SortExpression="dimension_description" Visible="true">
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="40%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="question_num" HeaderText="题数" SortExpression="question_num">
                            <ItemStyle Width="5%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="dimension_time_min" HeaderText="时长(Sec)" SortExpression="dimension_time_min">
                            <ItemStyle Width="10%" />
                        </asp:BoundField>
                        <asp:HyperLinkField DataNavigateUrlFields="dimension_id" DataNavigateUrlFormatString="AddDimension.aspx?dimension_id={0}"
                            HeaderText="编辑" Text="编辑">
                            <ItemStyle Width="5%" />
                        </asp:HyperLinkField>
                        <asp:ButtonField ButtonType="Button" HeaderText="导出" CommandName="Export" Text="导出"
                            ControlStyle-CssClass="bluebtn">
                            <ControlStyle CssClass="bluebtn"></ControlStyle>
                            <ItemStyle Width="5%" />
                        </asp:ButtonField>
                    </Columns>
                    <AlternatingRowStyle BackColor="White" />
                    <HeaderStyle BackColor="#63C1CD" ForeColor="White" Font-Bold="True" Font-Names="宋体" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EmptyDataTemplate>
                        对不起，没有当前的查询记录存在!
                    </EmptyDataTemplate>
                </asp:GridView>
                <asp:CheckBox ID="CB_SelectAll" runat="server" AutoPostBack="true" Text="全选" OnCheckedChanged="CB_SelectAll_CheckedChanged" />&nbsp;
                <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" class="bluebtn" />
                <asp:Button ID="btnAdd" runat="server" Text="新增维度" OnClick="btnAdd_Click" class="bluebtn" />
                <asp:FileUpload ID="FileUploadTM" runat="server" CssClass="controlstyle" Visible="true" />
                <asp:Button ID="btnImport" runat="server" Text="导入选中维度的题目" OnClick="btnImport_Click"
                    class="bluebtn" />
            </td>
        </tr>
    </table>
</asp:Content>
